package com.wsx.ones.cloud.hello;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wangshuaixin on 17/5/6.
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @Value("${foo}")
    String foo;

    @RequestMapping(
            value = "/get",
            method = {RequestMethod.GET}
    )
    public String hello() {
        return "hello" + foo;
    }
}
